package 狂神;

import java.util.Scanner;

/**
 * @ClassName: scanner03
 * @Auther: Drawin
 * @Date: 2021/11/1 22:48
 * @Description:
 */

public class scanner03 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        double sum=0;
        int m=0;
        while(scanner.hasNextDouble()){
            double x=scanner.nextDouble();
            m++;
            sum+=x;
        }
        System.out.println(m+"个数的和为"+sum);
        System.out.println(m+"个数的平均是"+(sum/m));

        scanner.close();
    }
}
